<!DOCTYPE html>
<?php
session_start();
if (isset($_SESSION['admin'])) {
    require_once("viewmenu.php");
    ?>
    <html lang="pt-br">
        <head>
            <meta charset="utf-8">
            <link rel="stylesheet" type="text/css" href="css/estilo-default.css"/>
            <link rel="stylesheet" type="text/css" href="css/tabelasenha.css"/>
            <link rel="stylesheet" type="text/css" href="css/jquery-ui.css"/>
            <script type="text/javascript" src="js/jquery.js"></script>
            <script type="text/javascript" src="js/jquery-ui.js"></script>
            <script type="text/javascript" src="js/jquery.validate.js"></script>
            <script type='text/javascript' src='js/jquery.form.js'></script>
            <script type='text/javascript' src='js/cliente.senha.alterar.js'></script>
            <title>Cadastro</title>
        </head>
        <body>
            <div id='centro'>
                <p>Alterar Senha</p>
                <fieldset>
                    <form name='alterarsenha' id="alterarsenha" action='../control/ControleValidarSenha.php' method='post'>
                        <table>
                            <tr>
                                <td class="td1">Usuário:</td>
                                <td class="td2"><input type='text' name='cpf' id="cpf" class="input-text" maxlength="11" autofocus/></td>
                            </tr>
                            <tr>
                                <td class="td1">Nova Senha:</td>
                                <td class="td2"><input type='password' name='senha' id="senha" class="input-text" readonly/></td>
                            </tr>
                            <tr>
                                <td class="td1">Repita a Senha:</td>
                                <td class="td2"><input type='password' name='controlesenha' id="controlesenha" class="input-text" readonly/></td>
                            </tr>
                            <tr>
                                <td colspan="2"><input type='submit' name='controle' value='Cadastrar'/></td>
                            </tr>
                        </table>
                    </form>
                </fieldset>
            </div>
        </body>
    </html>

    <?php
} else {
    header("Location: index.php");
}
?>